package com.frejoys.common.vo.store;

import com.frejoys.common.util.AppConfigUtil;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author wangzhicheng
 * @version 1.0
 * @date 2024/5/16 17:24
 */
@Data
public class StoreCodeVo {

    // 支付码
    @Schema(type = "String", name = "payCode", description = "支付码")
    private String payCode;

    // 类型：1.线上码，2.线下码
    @Schema(type = "Integer", name = "type", description = "类型：1.线上码，2.线下码")
    private Integer type;

    public String getPayCode() {
        return AppConfigUtil.getUrlPrefix(payCode);
    }
}
